﻿namespace UserManagement
{
    using Common.Base;
    using UserManagement.Views;

    internal class RegistrationController : BaseController
    {
        private UserManagementController subsystem;

        public RegistrationController(UserManagementController s)
        {
            this.subsystem = s;
        }

        public override void Initialize()
        {
            this.currentView = new RegistrationPage(this);
            this.ChangeView(this.currentView);
        }

        public void GoToLogin()
        {
            this.subsystem.ShowLogin();
        }
    }
}
